'''
算数运算符
   + - * / //  % **
'''
a = 5
b = 3
print(a + b)
print(a + 7)
print(a / b)  # 数学上的除法，可能有小数位
print(a // b)  # 商保留整数
print(a % b)  # 取模 取余
print(b%a)
print(a**3)  # a^3

# *在字符串的应用
print("a"+"hello") # 字符串的拼接
print("-"*50)  # 字符串重复50次打印

print("-----------我是分隔符------------")

'''
比较运算符
  >  <  >=  <= ==等值判断 != 不等于判断
  比较运算符的结果全部是布尔值True False
'''
name = "tom"
f = name != "tom"
print("判断姓名是否是tom" )
print(f)
print(a>b)


# user = input("请输入用户名：")
# ps = input("密码：")
# print(user == "root" and ps =="123")

'''
赋值运算符
= +=  -=  *= /=  //=  %= **=
'''
num = 3
num1 = num+5
num += 5 # num = num+5
print(num)
num *= 3 # num = num*3
print(num)

'''
逻辑运算符
and   两边都为真，结果才为真
 or   两边都为假，结果才为假
 not  取反
'''
print(3>4 and 4<5)
print( not 6<=9)






